package com.yupi.springbootinit.model.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* @author chenwl
* @description 图表信息
* @TableName chart
* @Date 2024-11-10 16:52:41
*/
@TableName(value = "chart")
@Data
public class Chart implements Serializable{
    /**
    * id
    */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
    * 分析目标
    */
    @TableField(value = "goal")
    private String goal;
    /**
    * 图表名称
    */
    @TableField(value = "chartName")
    private String chartName;
    /**
    * 图表数据
    */
    @TableField(value = "chartData")
    private String chartData;
    /**
    * 图表类型
    */
    @TableField(value = "chartType")
    private String chartType;
    /**
    * 生成的图表数据
    */
    @TableField(value = "genChart")
    private String genChart;
    /**
    * 生成的分析结论
    */
    @TableField(value = "genResult")
    private String genResult;
    /**
     * 创建用户id
     */
    @TableField(value = "userId")
    private Long userId;
    /**
     * wait,succeed,failed,running
     */
    @TableField(value = "status")
    private String status;
    /**
     * 执行信息
     */
    @TableField(value = "execMessage")
    private String execMessage;
    /**
     * 创建时间
     */
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    /**
    * 是否删除
    */
    @TableLogic
    @TableField(value = "isDelete", fill = FieldFill.INSERT)
    private Integer isDelete;
}

